package com.beecloud.microservice.user.web.controller;

import com.beecloud.microservice.user.domain.dto.LoginSuccessDTO;
import com.beecloud.microservice.user.web.parameter.LoginParam;
import io.swagger.annotations.*;
import org.springframework.http.ResponseEntity;

public interface AuthenticationApi {
    @ApiOperation(value = "用户登陆", authorizations ={
        @Authorization(value = "userApiKey")
    } )
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "登陆成功", response = LoginSuccessDTO.class)
    })
    ResponseEntity<LoginSuccessDTO> login(@ApiParam(value = "登陆参数", required = true) LoginParam loginParam);

    @ApiOperation(value = "用户登出")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "登出成功", response = String.class)
    })
    ResponseEntity<String> logout(@ApiParam(value = "授权ID", required = true) String id);
}
